<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title><?php echo $this->systemName;?></title>
<link rel="stylesheet" href="<?php echo $this->baseUrl;?>/files/admin/css/frame.css" />
<script language="javascript" src="<?php echo $this->baseUrl;?>/files/admin/js/jquery.js"></script>
</head>

<body>
<link rel="stylesheet" href="<?php echo $this->baseUrl;?>/files/admin/js/select.jquery/select.css" />
<script type="text/javascript">
	$(document).ready(function() {
		$(".dropdown img.flag").addClass("flagvisibility");

		$(".dropdown dt a").click(function() {
			$(".dropdown dd ul").toggle();
		});
					
		$(".dropdown dd ul li a").click(function() {
			var text = $(this).html();
			$(".dropdown dt a span").html(text);
			$(".dropdown dd ul").hide();
		});
					
		function getSelectedValue(id) {
			return $("#" + id).find("dt a span.value").html();
		}

		$(document).bind('click', function(e) {
			var $clicked = $(e.target);
			if (! $clicked.parents().hasClass("dropdown"))
				$(".dropdown dd ul").hide();
		});


		$("#flagSwitcher").click(function() {
			$(".dropdown img.flag").toggleClass("flagvisibility");
		});
	});
</script>
<table width="100%" border="0" cellpadding="0" cellspacing="0" height="100%" id="main">
	<tr>
		<td height="9%" colspan="2" id="top">
			<div id="logo"><img src="<?php echo $this->baseUrl;?>/files/admin/images/logo.gif"></div>
			<div id="userInfo">

				<p><?php echo $this->currentUserRow['userName'];?>（<?php echo $this->currentUserRow['name'];?>）</p>
				<p><a href="<?php echo $this->projectUrl(array('controller' => 'user', 'action' => 'update-self-password')) ;?>" target="rightFrame">修改密码</a> | <a href="<?php echo $this->projectUrl(array('controller' => 'menu', 'action' => 'index')) ;?>" target="rightFrame">菜单管理</a> | <a href="<?php echo $this->projectUrl(array('controller' => 'menu', 'action' => 'index')) ;?>" target="rightFrame">产品菜单管理</a> | <a href="<?php echo $this->projectUrl(array('controller' => 'login', 'action' => 'logout')) ;?>">退出登录</a></p>

			</div>
			<div id="other">
				<p id="otherLink"><a href="#">管理首页</a> | <a href="#">帮助中心</a></p>
				<p id="appSelect">
					<dl class="dropdown">
						<dt><a href="javascript:void(0);"><span>选择产品</span></a></dt>
						<dd>
							<ul>
								<li><a href="javascript:void(0);">凡客诚品<span class="value">vancl</span></a></li>
								<li><a href="javascript:void(0);">麦包包<span class="value">mbaoboa</span></a></li>
								<li><a href="javascript:void(0);">李宁<span class="value">lining</span></a></li>
								<li><a href="javascript:void(0);">梦芭莎<span class="value">moonbasa</span></a></li>
							</ul>
						</dd>
					</dl>
				</p>
			</div>
		</td>
	</tr>
	<tr id="bottom">
		<td valign="top" width="15%">
        
       
			<div id="menu">
				<!--用户-->
		<div>
							<p>角色管理</p>
							<div class="node">
								<div>
									<p><a href="<?php echo $this->projectUrl(array('controller'=>'test', 'action'=>'list'));?>" target="rightFrame">角色列表</a></p>
								</div>
								<div>
									<p><a href="<?php echo $this->projectUrl(array('controller'=>'test', 'action'=>'edit'));?>" target="rightFrame">添加角色</a></p>
								</div>
							</div>
						</div>
						<div>
							<p>用户管理</p>
							<div class="node">
								<div>
									<p><a href="#">用户列表</a></p>
								</div>
								<div>
									<p><a href="#">添加用户</a></p>
								</div>
							</div>
							<div class="node">
								<div>
									<p><a href="<?php echo $this->projectUrl(array('controller'=>'partner', 'action'=>'list'));?>" target="rightFrame">商家列表</a></p>
								</div>
								<div>
									<p><a href="<?php echo $this->projectUrl(array('controller'=>'partner', 'action'=>'edit'));?>" target="rightFrame">添加商家</a></p>
								</div>
							</div>
						</div>

					</div>
				</div>
				<!--客户端查询-->
				<div class="node">
					<p>客户端</p>
					<div class="node">
						<div>
							<p><a href="#">启动明细</a></p>
						</div>
						<div>
							<p><a href="#">装机明细</a></p>
						</div>
					</div>
				</div>
			
						<div>
							<p>商家管理</p>
							<div class="node">
								<div>
									<p><a href="<?php echo $this->projectUrl(array('controller'=>'partner', 'action'=>'list'));?>" target="rightFrame">商家列表</a></p>
								</div>
								<div>
									<p><a href="<?php echo $this->projectUrl(array('controller'=>'partner', 'action'=>'edit'));?>" target="rightFrame">添加商家</a></p>
								</div>
							</div>
						</div>
</div>
		</td>
		<td id="right">
			<iframe src="<?php echo $this->projectUrl(array('controller'=>'index', 'action'=>'right'));?>" name="rightFrame" width="100%" height="100%" frameborder="0" id="rightFrame"></iframe>
		</td>
	</tr>
</table>

<script language="javascript">
$("#menu p").click(function(){
	if ($(this).next().css('display') == 'none') {
		$(this).next().show('slow');
	} else {
		$(this).next().hide('slow');
	}
});
</script>
</body>
</html>